package net.oschina.kjtang.qywx.api.service;

import net.oschina.kjtang.qywx.api.entity.User;
import net.oschina.kjtang.qywx.common.exception.RCodeException;

import java.util.List;

/**
 * Created by kaijun on 2017/12/2.
 */
public interface WxUserService{

    public void addUser(User user,String accessToken) throws RCodeException;

    public void updateUser(User user,String accessToken) throws RCodeException;

    public void deleteUser(String userid,String accessToken) throws RCodeException;

    public void batchDeleteUser(List<String> userids,String accessToken) throws RCodeException;

    public User getUser(String userid,String accessToken) throws RCodeException;

    public List<User> getDepartmentUserList(String departId,boolean isFetchChild,String accessToken) throws RCodeException;

    public List<User> getDepartmentUserDetail(String departId,boolean isFetchChild,String accessToken) throws RCodeException;



}
